package com.ruoyi.project.syl_Fzq.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import java.util.Objects;

public class Drug_Manufacturer extends BaseEntity {
    //厂家ID
    private Long manufacturerID;
    //厂家名称
    //非空校验
    @NotBlank(message = "厂家名称不能为空")
    private String manufacturerName;
    //厂家编码
    private String manufacturerCode;
    //厂家地址
    private String manufacturerAddress;
    //厂家联系人
    private String manufacturerPeople;
    //厂家电话
    private String manufacturerPhone;
    //厂家关键字
    private String manufacturerKeyWord;
    //厂家状态
    private String status;

    public Drug_Manufacturer() {
    }

    @Override
    public String toString() {
        return "Drug_Manufacturer{" +
                "manufacturerID=" + manufacturerID +
                ", manufacturerName='" + manufacturerName + '\'' +
                ", manufacturerCode='" + manufacturerCode + '\'' +
                ", manufacturerAddress='" + manufacturerAddress + '\'' +
                ", manufacturerPeople='" + manufacturerPeople + '\'' +
                ", manufacturerPhone='" + manufacturerPhone + '\'' +
                ", manufacturerKeyWord='" + manufacturerKeyWord + '\'' +
                ", status='" + status + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Drug_Manufacturer that = (Drug_Manufacturer) o;
        return Objects.equals(manufacturerID, that.manufacturerID) &&
                Objects.equals(manufacturerName, that.manufacturerName) &&
                Objects.equals(manufacturerCode, that.manufacturerCode) &&
                Objects.equals(manufacturerAddress, that.manufacturerAddress) &&
                Objects.equals(manufacturerPeople, that.manufacturerPeople) &&
                Objects.equals(manufacturerPhone, that.manufacturerPhone) &&
                Objects.equals(manufacturerKeyWord, that.manufacturerKeyWord) &&
                Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(manufacturerID, manufacturerName, manufacturerCode, manufacturerAddress, manufacturerPeople, manufacturerPhone, manufacturerKeyWord, status);
    }

    public Long getManufacturerID() {
        return manufacturerID;
    }

    public void setManufacturerID(Long manufacturerID) {
        this.manufacturerID = manufacturerID;
    }

    public String getManufacturerName() {
        return manufacturerName;
    }

    public void setManufacturerName(String manufacturerName) {
        this.manufacturerName = manufacturerName;
    }

    public String getManufacturerCode() {
        return manufacturerCode;
    }

    public void setManufacturerCode(String manufacturerCode) {
        this.manufacturerCode = manufacturerCode;
    }

    public String getManufacturerAddress() {
        return manufacturerAddress;
    }

    public void setManufacturerAddress(String manufacturerAddress) {
        this.manufacturerAddress = manufacturerAddress;
    }

    public String getManufacturerPeople() {
        return manufacturerPeople;
    }

    public void setManufacturerPeople(String manufacturerPeople) {
        this.manufacturerPeople = manufacturerPeople;
    }

    public String getManufacturerPhone() {
        return manufacturerPhone;
    }

    public void setManufacturerPhone(String manufacturerPhone) {
        this.manufacturerPhone = manufacturerPhone;
    }

    public String getManufacturerKeyWord() {
        return manufacturerKeyWord;
    }

    public void setManufacturerKeyWord(String manufacturerKeyWord) {
        this.manufacturerKeyWord = manufacturerKeyWord;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
